package vg.services.plugin_manager.event_and_request.request;

import vg.services.graph_view_manager.interfaces.graph_view.AGraphView;

/**
 * This request asks the system to replace current tab by other tab 
 * @author tzolotuhin
 */
public class UIRequestReplaceCurrentTab extends AUIRequest {
	private final AGraphView view;
	/**
	 * Constructor.
	 * @param view - view of subgraph.
	 * @param owner - owner of request.
	 */
	public UIRequestReplaceCurrentTab(final AGraphView view, final IUIRequestOwner owner) {
		super(EUIRequestType.DEF_REPLACE_CURRENT_TAB, owner);
		this.view = view;
	}
	public AGraphView getSubGraphView() {
		return(this.view);
	}
}
